<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9"
        aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="/">
        <!-- <img src="/static/images/logo.png" alt=""> -->
        接口文档中心
      </a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-9">
      <ul class="nav navbar-nav navbar-right">
        {% if user %}
        <li>
          <a href="/">欢迎您：{{ '前端仔' if user.user_type==0 else '后端仔'}}--{{user.user_account}}</a>
        </li>
        <li>
          {% if user.user_type==0 %}
          <a href="/index">控制中心</a>
          {% else %}
          <a href="/admin">控制中心</a>
          {% endif %}
        </li>
        {% else %} {% endif %}
        <!-- <li><a href="javascript:;">控制中心</a></li> -->


        <!-- <li><a href="/admin">接口添加入口</a></li> -->
      </ul>
    </div>
    <!-- /.navbar-collapse -->
  </div>
  <!-- /.container-fluid -->
</nav>